import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
    permissionList:[],//存储权限
    permissionId:''//角色Id
}

const actions = {

}

const mutations = {
    SET_PERMISSION_LIST(state,value){
        state.permissionList=value
    },
    SET_PERMISSION_ID(state,value){
        state.permissionId=value
    }
}

export default new Vuex.Store({
	actions,
	mutations,
	state,
})